import request from '@/utils/request'

/**
 * 台账利润
 */
export function getProfitBook(data) {
  return request({
    url: '/backend_book_profit',
    method: 'post',
    data
  })
}
export function profitExcelout(data) {
  return request({
    url: '/backend_book_profit_excelout',
    method: 'post',
    data
  })
}

export function getCustomerBook(query) {
  return request({
    url: '/book/getCustomerBook',
    method: 'get',
    params: query
  })
}
export function createBadDebts(data) {
  return request({
    url: '/book/createBadDebts/',
    method: 'post',
    data
  })
}
